<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			div{
				width: 200px;
				height: 200px;
				background-color: darkgoldenrod;
			}
			.box1{
				/*相对定位:相对于元素本身位置来定位*/
				position: relative;
				left: 50px;
				top: 50px;
			}
			.box2{
				position: relative;
				left: 50px;
				top: 50px;
			}
		</style>
	</head>
	<body>
		<div class="box1">1</div>
		<br />
		<div class="box2">2</div>
	</body>
</html>